import request from '@/utils/request'

// 查询磅单信息列表
export function listPound(query) {
  return request({
    url: '/pound/pound/list',
    method: 'get',
    params: query
  })
}

// 查询磅单信息详细
export function getPound(id) {
  return request({
    url: '/pound/pound/' + id,
    method: 'get'
  })
}

// 新增磅单信息
export function addPound(data) {
  return request({
    url: '/pound/pound',
    method: 'post',
    data: data
  })
}

// 修改磅单信息
export function updatePound(data) {
  return request({
    url: '/pound/pound',
    method: 'put',
    data: data
  })
}

// 删除磅单信息
export function delPound(id) {
  return request({
    url: '/pound/pound/' + id,
    method: 'delete'
  })
}

// 查询磅单信息列表
export function listSettlePound(query) {
  return request({
    url: '/pound/settle/list',
    method: 'get',
    params: query
  })
}
